#include "myrequesthandler.h"

MyRequestHandler::MyRequestHandler(QObject* parent): HttpRequestHandler(parent)
{
    Q_UNUSED(parent)

}

void MyRequestHandler::service(HttpRequest &request, HttpResponse &response)
{
    response.setHeader("Content-Type", "application/json; charset=utf-8");
    QByteArray path=request.getPath();
    if (path == "/api/v1/bot") {
	   response.write("Hello!");
    }else {
		response.write("404 NOT FOUND!");
	}
   
}


